home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / text / hyper / ADtoHT2_1.lha / Source.lha / lmkfile < prev    next >
Encoding:
Text File  |  1995-04-23  |  2.3 KB  |  73 lines

  1. # Makefile for Lattice make with SAS/C V5.10b
  2.  
  3. DISTFILE   = ADtoHT2_1.lha
  4.  
  5. SOURCES    = AdditionalDocs.c Autodocs.c AVL.c File.c FormatNode.c Includes.c main.c ProcessDir.c
  6. HEADERS    = AdditionalDocs.h Autodocs.h AVL.h File.h FormatNode.h Includes.h main.h ProcessDir.h Version.h
  7. LIB        = Work:lc/Projekte/MyLib/MyLib1_1.lha
  8.  
  9. EXEC       = ADtoHT
  10. DOCS       = ADtoHT.guide
  11. SOURCE     = Source.lha
  12.  
  13. DISTFILES  = $(SOURCE) $(EXEC) $(DOCS)
  14.  
  15. DIGEST     = md5.Digest
  16.  
  17. CC = lc
  18. CFLAGS = -v -ms -cfs -iINCLUDE:MyLib/ -DSMALL_DATA -DSMALL_CODE
  19.  
  20. OBJS = main.o File.o Includes.o ProcessDir.o AVL.o Autodocs.o AdditionalDocs.o FormatNode.o
  21.  
  22. all: ADtoHT
  23.  
  24.  .c.o:
  25.     $(CC) $(CFLAGS) $*
  26.  
  27. MyLib.lha: $(LIB)
  28.     lha -a e $(LIB) $@
  29.     lha d $@ GNUC/* SAS5/* GNUCb/* SAS5b/* GNUCs/* SAS5s/*
  30.  
  31. $(EXEC): $(OBJS)
  32.     blink TO $(EXEC) LIB SAS5bs/MyLib.lib LIB:amiga.lib LIB:lc.lib SC SD NOICONS <WITH <
  33.         FROM SAS5bs/MyStartup.o $(OBJS)
  34.     <
  35.  
  36. $(SOURCE): $(SOURCES) $(HEADERS) MyLib.lha Makefile lmkfile
  37.     -Delete >NIL: $(SOURCE)
  38.     lha -Aarz u $(SOURCE) $(SOURCES)
  39.     lha -Aarz u $(SOURCE) $(HEADERS)
  40.     lha -Aarz u $(SOURCE) MyLib.lha lmkfile Makefile
  41.  
  42. $(DIGEST): $(DISTFILES)
  43.     pgp -kxa stieber stieber
  44.     echo >.$(DIGEST) "--> Anything above this line has been hacked! <--*n"
  45.     md5sum >>.$(DIGEST) -b $(DISTFILES)
  46.     join .$(DIGEST) stieber.asc TO $(DIGEST)
  47.     Delete >NIL: .$(DIGEST) stieber.asc
  48.     pgp <>KCON:0/16/640/150/PGP -sat +clearsig=on $(DIGEST)
  49.     Delete >NIL: $(DIGEST)
  50.     Rename >NIL: $(DIGEST).asc $(DIGEST)
  51.     Protect $(DIGEST) rwd        # AmigaOS is stupid
  52.  
  53. clean:
  54.     -Delete $(SOURCE) $(OBJS) $(EXEC) $(DISTFILE) $(DIGEST) .$(DIGEST) $(DIGEST).asc MyLib.lha
  55.  
  56. dist: $(DISTFILE)
  57.  
  58. $(DISTFILE): $(DIGEST)
  59.     -Delete >NIL: $(DISTFILE)
  60.     lha -AZar a $(DISTFILE) $(DISTFILES) $(DIGEST)
  61.     -Delete >NIL: $(SOURCE) MyLib.lha
  62.  
  63. # Dependencies
  64.  
  65. main.o: main.c main.h AVL.h File.h Includes.h ProcessDir.h Autodocs.h AdditionalDocs.h Version.h
  66. ProcessDir.o: ProcessDir.c main.h AVL.h ProcessDir.h
  67. File.o: File.c main.h AVL.h File.h Version.h
  68. Autodocs.o: Autodocs.c Includes.h main.h AVL.h File.h Autodocs.h FormatNode.h AdditionalDocs.h
  69. AVL.o: AVL.c AVL.h
  70. Includes.o: Includes.c main.h AVL.h File.h ProcessDir.h Includes.h Autodocs.h FormatNode.h AdditionalDocs.h
  71. AdditionalDocs.o: AdditionalDocs.c main.h AVL.h File.h AdditionalDocs.h Includes.h Autodocs.h FormatNode.h
  72. FormatNode.o: FormatNode.c main.h AVL.h File.h FormatNode.h
  73.